package org.scratchcrew.domain;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "t_users")
@AttributeOverrides(value = { @AttributeOverride(column = @Column(name = "user_id"), name = "id") })
public class User extends BaseEntity {
	@Column(name = "user_name", nullable = false, unique=true)
	private String userName;

	@Column(name = "password", nullable = false)
	private String password;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}
